package com.hzw.saas.api.hpc.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author sonam
 * @sine 2021/12/23 12:34 下午
 */
@Data
@ApiModel("创建青云合同参数")
public class QingCloudContractUsableQuery {

    @NotBlank(message = "hpc用户名不能为空")
    @ApiModelProperty(value = "hpc用户名")
    @Pattern(regexp = "^[a-z]([a-z0-9]|[_]){1,8}$", message = "HPC用户名，1-8个字符，可包含字母，数字，下划线")
    private String hpcAccount;

    @NotBlank(message = "slurm账号名不能为空")
    @ApiModelProperty(value = "slurm账号名")
    private String slurmAccount;

    @NotBlank(message = "合同ID不能为空")
    @ApiModelProperty(value = "合同ID")
    private String contractId;

 }
